package kr.hkit.powerjava.chapter05;

import java.util.Scanner;

public class lab {
	public static void main(String[] args) {
		boolean isCapital;
		int citizens;
		int riches;
		boolean isMetro;
		
		Scanner sc = new Scanner(System.in);
		System.out.print("수도입니까? (수도:1 수도아님:0) ");
		isCapital = (sc.nextInt() == 1) ? true : false;
		System.out.print("인구(단위: 만)");
		citizens = sc.nextInt();
		System.out.print("부자의 수(단위: 만)");
		riches = sc.nextInt();
		
		isMetro = (isCapital && citizens>=100)
				|| (riches>=10000 && citizens>=50);
		System.out.println("메트로폴리스 여부: "+ isMetro);
	}
}
